package com.changan.service;

import com.changan.entity.User;
import com.changan.vo.LoginVO;
import com.github.pagehelper.PageInfo;

public interface UserService{


    int deleteByPrimaryKey(Long id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    User login(String userCode);

    /**
     * 功能描述: <br>
     * 〈〉
     * @Param: [pageNum, pageSize, userName, userRole]
     * @Return: com.github.pagehelper.PageInfo<com.changan.entity.User>
     * @Author: Mr.Nie
     * @Date: 2021/12/1 15:13
     */
    PageInfo<User> getUsersByPage(Integer pageNum, Integer pageSize, String userName, Integer userRole);
}
